<!DOCTYPE html>
<html class="layui-bg-white">
<head th:include="include :: header"></head>
<body>
<div class="layui-form" style="padding:20px;">
    <input id="id" name="id" th:value="${synthesisQuestion.id}" type="hidden">
    <div class="layui-form-item">
        <label class="layui-form-label"><span class="required">*</span>科目：</label>
        <div class="layui-input-block">
            <input type="text" name="subjectName" lay-verify="required" placeholder="请输入科目" autocomplete="off" class="layui-input" th:value="${synthesisQuestion.subjectName}" readonly>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><span class="required">*</span>类型：</label>
        <div class="layui-input-block" style="pointer-events:none;">
            <input type="radio" name="type" value="1" title="问答" th:checked="${synthesisQuestion.type=='1'}">
            <input type="radio" name="type" value="2" title="论文" th:checked="${synthesisQuestion.type=='2'}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><span class="required">*</span>题号：</label>
        <div class="layui-input-block">
            <input type="text" id="sortNumber" name="sortNumber" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input" th:value="${synthesisQuestion.sortNumber}" readonly>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><span class="required">*</span>题目：</label>
        <div class="layui-input-block">
            <textarea id="name" name="name" th:text="${synthesisQuestion.name}" class="layui-textarea" lay-verify="required" placeholder="请输入题目"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">答案：</label>
        <div class="layui-input-block">
            <textarea id="answer" name="answer" th:text="${synthesisQuestion.answer}" class="layui-textarea" placeholder="请输入答案"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">答案解析：</label>
        <div class="layui-input-block">
            <textarea id="answerAnalysis" name="answerAnalysis" th:text="${synthesisQuestion.answerAnalysis}" class="layui-textarea" placeholder="请输入答案解析"></textarea>
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-operate-submit" id="LAY-operate-submit" value="确认">
    </div>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript">
    var synthesisQuestion = {};
    layui.config({
        base: ctx + '/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index'         //主入口模块
    }).use(['index', 'form', 'layedit'], function () {
        var $ = layui.$, layedit = layui.layedit;

        //初始和获取富文本的内容
        layedit.build('name');
        layedit.build('answer');
        layedit.build('answerAnalysis');
        $(".layui-layedit .layui-layedit-tool").css('pointer-events', 'none');
    })
</script>
</body>
</html>